<template>
  <div>
    <h2>点击次数：{{count}}，当前次数为{{evenOrOdd}}</h2>
  </div>
</template>

<script>
import {mapState,mapGetters} from 'vuex'
  export default {
    name:'CountShow',
    computed: {
      ...mapState('counter',['count']),
      // ...mapState({count2:'count'}),
      // ...mapState({count3:state=>state.counter.count}),
      // ...mapGetters(['Counter/evenOrOdd']),
      ...mapGetters('counter',['evenOrOdd'])
    },
  }
</script>

<style scoped>
  
</style>